'''
numpy的shape属性的使用
'''
import  numpy as np
'''
1 2  3  4
5 6  7  8
9 10 11 12
(3,4)--->(4,3)
'''
# 创建二维数组
ary = np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12]])
print("修改前:",ary)
ary.shape = (4,3)
print("修改后:",ary)